/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.cheln.explorer.func.setup;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.direction.hold.VPAty;

import cn.cheln.support.log.Logs;
import cn.cheln.support.notification.NotifyUtil;

/**
 *
 * @author chenliang
 */
public class InstallBroadcast extends BroadcastReceiver {

//    public static final String ACTION_APK_NOTIFY_CANCEL = "com.lewa.filemanager.apk_notify_cancel";

    @Override
    public void onReceive(Context cntx, Intent intent) {
        NotifyUtil.cancel(VPAty.activity, NotifyUtil.ID_INSTALLED);
        cntx.startActivity(cntx.getPackageManager().getLaunchIntentForPackage(cntx.getPackageName()));
    }
}
